package ms.pc.inf;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class Tab extends TabActivity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		TabHost host=getTabHost();

		host.addTab(host.newTabSpec("one") .setIndicator("Available Events")
				.setContent(new Intent(this, Events.class)));
		host.addTab(host.newTabSpec("two")
				.setIndicator("Attending Events")
				.setContent(new Intent(this, AttendingEvents.class)));
		host.setCurrentTab(0);
	}
}
